﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="AddMovie.aspx.cs" Inherits="AdminPages_AddMovie" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

        Add Movie

        <ul>
        <li>
            <asp:Label ID="lbl_MovieTitle" runat="server" Text="Movie Title: "></asp:Label>
            <asp:TextBox ID="txt_Movietitle" runat="server" Width="282px"></asp:TextBox>
        </li>
        <li>
            <asp:Label ID="lbl_Description" runat="server" Text="Description: "></asp:Label>
            <asp:TextBox ID="txt_MovieDescription" runat="server" Height="94px" 
                Width="284px" TextMode="MultiLine"></asp:TextBox>
        </li>
        <li>
            <asp:Label ID="lbl_Length" runat="server" Text="Length(in minutes): "></asp:Label>
            <asp:TextBox ID="txt_Length" runat="server"></asp:TextBox>
        </li>
        <li>
            <asp:Label ID="lbl_Director" runat="server" Text="Director: "></asp:Label>
            <asp:TextBox ID="txt_Director" runat="server"></asp:TextBox>
        </li>
        <li>
            <asp:Label ID="lbl_Cat1" runat="server" Text="Category: "></asp:Label>
            <asp:DropDownList ID="ddl_Cat1" runat="server" DataSourceID="SqlDataSource1" 
                DataTextField="Name" DataValueField="CategoryID">
            </asp:DropDownList>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                ConnectionString="<%$ ConnectionStrings:DatabaseConnectionString %>" 
                SelectCommand="SELECT [Name], [CategoryID] FROM [Category]">
            </asp:SqlDataSource>
        </li>
        <li>
            <asp:Label ID="lbl_Cat2" runat="server" Text="Category: "></asp:Label>
            <asp:DropDownList ID="ddl_Cat2" runat="server" DataSourceID="SqlDataSource1" 
                DataTextField="Name" DataValueField="CategoryID">
            </asp:DropDownList>
        </li>
        <li>
            <asp:Label ID="lbl_AvailabiliyDate" runat="server" Text="Availability Date: "></asp:Label>
            <asp:TextBox ID="txt_AvailabilityDate" runat="server"></asp:TextBox>
        </li>
        </ul>
         <asp:Button ID="btn_AddMovie" runat="server" Text="Add Movie " 
            onclick="btn_AddMovie_Click" />
</asp:Content>

